home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1997-01-29 | 3.7 KB | 139 lines |
- 10 'SMETER - S-Meter vs. Power - 07 JUN 96 rev. 28 SEP 96
- 20 IF EX$=""THEN EX$="EXIT"
- 30 CLS:KEY OFF
- 40 COLOR 7,0,1
- 50 UL$=STRING$(80,205)
- 60 U$="###,###.###"
- 70 '
- 80 COLOR 15,2
- 90 PRINT " S-METER READINGS vs. POWER";TAB(57)"by George Murphy VE3ERP ";
- 100 COLOR 1,0:PRINT STRING$(80,223);
- 110 COLOR 7,0
- 120 '
- 130 '.....start
- 140 LOCATE 3:VIEW PRINT 3 TO 24:CLS:VIEW PRINT:LOCATE 3
- 150 GOSUB 800 'preface
- 160 LOCATE 25,24:COLOR 15,4
- 170 PRINT " Press 1 to continue or 0 to EXIT ";
- 180 COLOR 7,0
- 190 Z$=INKEY$:IF Z$=""THEN 190
- 200 IF Z$="0"THEN CLS:RUN EX$
- 210 IF Z$="1"THEN 240
- 220 GOTO 190
- 230 '
- 240 LOCATE 3:VIEW PRINT 3 TO 24:CLS:VIEW PRINT:LOCATE 3
- 250 PRINT " Describe a typical transmitter and its signal report:
- 260 PRINT UL$;
- 270 INPUT " ENTER: Power in watts......................";P
- 280 INPUT " ENTER: S-meter reading (9.00 or less)......";S
- 290 IF S<=9 THEN 310
- 300 BEEP:LOCATE CSRLIN-1:PRINT STRING$(80,32);:LOCATE CSRLIN-1:GOTO 280
- 310 B=P/4^S
- 320 PRINT B
- 330 LOCATE 3:VIEW PRINT 3 TO 24:CLS:VIEW PRINT:LOCATE 3
- 340 PRINT " Relative Signal Strengths at Various Power Levels:
- 350 PRINT UL$;
- 360 FOR Z=1 TO 9
- 370 Y=10
- 380 IF FLAG=1 THEN FLAG=0:GOTO 400
- 390 IF S>Z-1 AND S<(Z)THEN 670
- 400 X=B*4^Z
- 410 GOSUB 740
- 420 COLOR 7,0
- 430 IF P=X OR P=X*10^3 OR P=X*10^6 THEN COLOR 0,7
- 440 PRINT " S";USING "#";Z;:PRINT TAB(Y);USING Z$;X;:PRINT W$;
- 450 IF P=X OR P=X*10^3 OR P=X*10^6 THEN 460 ELSE COLOR 7,0:GOTO 470
- 460 COLOR 0,7:PRINT " (reference level) ";
- 470 PRINT ""
- 480 NEXT Z
- 490 FOR Z=1 TO 4
- 500 X=B*4^9*10^Z:GOSUB 740
- 510 COLOR 7,0
- 520 PRINT " S9";USING "+##";Z*10;:PRINT TAB(Y);USING Z$;X;:PRINT W$"
- 530 NEXT Z
- 540 PRINT UL$;
- 550 T=8
- 560 PRINT TAB(T);
- 570 PRINT "These are the power levels required to achieve S-meter readings"
- 580 PRINT TAB(T);
- 590 PRINT "at levels other than the reference level."
- 600 PRINT
- 610 PRINT TAB(T);
- 620 PRINT "International regulations stipulate that no station should use more"
- 630 PRINT TAB(T);
- 640 PRINT "power than is necessary for the communication.";
- 650 GOTO 1210
- 660 '
- 670 COLOR 0,7
- 680 S$=STR$(S):S$=RIGHT$(S$,LEN(S$)-1)
- 690 PRINT " S";USING "#.#";S;:PRINT TAB(Y);USING Z$;P;:PRINT " watts ";
- 700 PRINT "(reference level) "
- 710 COLOR 0,7
- 720 FLAG=1:Z=Z-1:GOTO 480
- 730 '
- 740 '.....format display
- 750 Z$=U$:W$=" watts"
- 760 IF X>=10^3 THEN X=X/10^3:W$=" kilowatts"
- 770 IF X>=10^6 THEN X=X/10^6:W$=" megawatts"
- 780 RETURN
- 790 '
- 800 '.....preface
- 810 T=7:Z$=CHR$(34)
- 820 PRINT TAB(T);Z$;
- 830 PRINT "Because S meters are relative-reading instruments, signal reporting"
- 840 PRINT TAB(T);
- 850 PRINT "based on the amount of needle deflection is generally without"
- 860 PRINT TAB(T);
- 870 PRINT "meaning. No two receivers render the same reading of a given signal,"
- 880 PRINT TAB(T);
- 890 PRINT "unless by coincidence. This is because gain distribution within an"
- 900 PRINT TAB(T);
- 910 PRINT "amateur receiver varies from band to band. Since most S meters are"
- 920 PRINT TAB(T);
- 930 PRINT "activated from the AGC line in a receiver, what might be S9 on one"
- 940 PRINT TAB(T);
- 950 PRINT "ham band could easily become S6 or 10 dB over S9 on another band. A"
- 960 PRINT TAB(T);
- 970 PRINT "receiver that rendered accurate readings on each band it covered"
- 980 PRINT TAB(T);
- 990 PRINT "would be extremely esoteric and complex.";Z$;
- 1000 PRINT TAB(T);
- 1010 PRINT "(The 1994 ARRL HANDBOOK for RADIO AMATEURS, page 12-30)."
- 1020 PRINT
- 1030 PRINT TAB(T);
- 1040 PRINT "To increase your received signal by only ONE S-unit you need FOUR"
- 1050 PRINT TAB(T);
- 1060 PRINT "TIMES your current power. You need SIXTEEN times your current power"
- 1070 PRINT TAB(T);
- 1080 PRINT "for two S-units. If you are willing to decrease your signal by one"
- 1090 PRINT TAB(T);
- 1100 PRINT "S-unit (a barely discernible reduction to the listener) your power"
- 1110 PRINT TAB(T);
- 1120 PRINT "can be reduced to ONE-QUARTER of its current level."
- 1130 PRINT
- 1140 PRINT TAB(T);
- 1150 PRINT "(with TNX to IK5MDF in ";Z$;"RADIO REVISTA";Z$;" via Bob Eldridge,";
- 1160 PRINT " VE7BS, in"
- 1170 PRINT TAB(T);
- 1180 PRINT "the April 1996 issue of ";Z$;"THE CANADIAN AMATEUR";Z$;", page 24)"
- 1190 RETURN
- 1200 '
- 1210 '.....end
- 1220 GOSUB 1260
- 1230 GOTO 130
- 1240 END
- 1250 '
- 1260 'HARDCOPY
- 1270 GOSUB 1380:LOCATE 25,2:COLOR 14,6
- 1280 PRINT " Press 1 to print screen, 2 to print screen & ";
- 1290 PRINT "advance paper, or 3 to continue.";:COLOR 7,0
- 1300 Z$=INKEY$:IF Z$="3"THEN GOSUB 1380:RETURN
- 1310 IF Z$="1"OR Z$="2"THEN GOSUB 1380:GOTO 1330
- 1320 GOTO 1300
- 1330 FOR QX=1 TO 24:FOR QY=1 TO 80
- 1340 LPRINT CHR$(SCREEN(QX,QY));
- 1350 NEXT QY:NEXT QX
- 1360 IF Z$="2"THEN LPRINT CHR$(12)
- 1370 GOTO 1270
- 1380 LOCATE 25,1:PRINT STRING$(80,32);:RETURN
-